package main;

import cip.standaloneCodeGen.StandaloneCG;
import java.io.FileNotFoundException;
import java.io.IOException;
import parser.ParseException;
import parser.Parser;
import parser.nodes.CompileError;

public class MainClass {
    public static void main(String... args) throws FileNotFoundException, IOException, ClassNotFoundException, ParseException, CompileError {
        try {
        Parser parser = new Parser("src/scanner/source.o0");
        parser.parse();
        System.out.println("\n\n\n");
        StandaloneCG.main(new String[] {"src/output/prog.asm", "0"});
		} catch (ParseException | CompileError e){
			System.err.println(e.toString());
		}
    }
}
